﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using x.Domain.User;

namespace x.EntityFrameworkCore.User
{
    public class UserRepository : IUserRepository
    {
        private readonly MyDbContext myDbContext;

        public UserRepository(MyDbContext myDbContext)
        {
            this.myDbContext = myDbContext;
        }
        public int UserAdd(Users user)
        {
            myDbContext.Users.Add(user);
            return myDbContext.SaveChanges();
        }
    }
}
